﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeFile="JokeAdd.aspx.cs" Inherits="nst_joke_JokeAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>添加到PublishJoke</title>
    <script src="/js/jquery.min1.4.2.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $("#txtContent").change(function() {
                $("#contentLength").text('长度：' + $(this).val().length);
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    添加到PublishJoke正式表<br />
    标题<span style="color:red">*</span>
    <asp:TextBox ID="txtTitle" runat="server" Width="400px"></asp:TextBox>
    score<asp:DropDownList ID="ddlScore" runat="server">
            <asp:ListItem>1</asp:ListItem>
            <asp:ListItem>2</asp:ListItem>
            <asp:ListItem>3</asp:ListItem>
            <asp:ListItem>4</asp:ListItem>
            <asp:ListItem Selected="True">5</asp:ListItem>
            <asp:ListItem>6</asp:ListItem>
            <asp:ListItem>7</asp:ListItem>
            <asp:ListItem>8</asp:ListItem>
            <asp:ListItem>9</asp:ListItem>
            <asp:ListItem>10</asp:ListItem>
        </asp:DropDownList>
        
    作者：<asp:TextBox ID="txtAuthor" runat="server"></asp:TextBox><br />
    
    内容<span style="color:red">*</span>
    <asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine" Height="317px" Width="664px"></asp:TextBox>
    
        <br />
        添加到分类
        <asp:DropDownList ID="ddlType" runat="server">                        
        </asp:DropDownList>
        
        <div id="contentLength"></div>
        
        <asp:Button ID="btnAdd" runat="server" Text="添加" onclick="btnAdd_Click" />
        <br />
        <asp:Label ID="lblMsg" runat="server"></asp:Label>
    </div>
    </form>
</body>
</html>
